package com.enki.cigarettes.enums;

/**
 * @author WCS.Wang
 * @version V1.0
 * @Package com.enki.cigarettes.enums
 * @Name aec-middle-admin-api-module
 * @Description: TODO 店铺枚举
 * @date 2018/8/30
 */
public class StoreEnums {

    /**
     * 运费
     */
    public enum FareRebate {
        NOTHING("无", 0), FULL("满免", 1);

        private String name;
        private int rebate;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getRebate() {
            return rebate;
        }

        public void setRebate(int rebate) {
            this.rebate = rebate;
        }

        FareRebate(String name, int rebate) {
            this.name = name;
            this.rebate = rebate;
        }
    }

    /**
     * 店铺状态
     */
    public enum StoreStatus {

        CLOSE("关闭", -1), REVIEW("审核中", 0), OPEN("营业中", 1), RECTIFY("整顿中", 2), REJECT("审核驳回", 3);

        private String name;
        private int status;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        StoreStatus(String name, int status) {
            this.name = name;
            this.status = status;
        }
    }

    /**
     * 菜单类型
     */
    public enum StoreMenuType {

        LINK("链接菜单", 0), CUSTOM("自定义菜单", 1), ALL("全部商品", 2), HOMEPAGE("首页", 3);

        private String name;
        private int type;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        StoreMenuType(String name, int type) {
            this.name = name;
            this.type = type;
        }
    }

    /**
     * 店铺页面类型
     */
    public enum StorePageType {
        HOMEPAGE("店铺首页", 0), CATEGORY("店铺分类页", 1), SEARCH("店铺搜索页", 2), CUSTOM("自定义页面", 3),;


        private String name;
        private int type;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        StorePageType(String name, int type) {
            this.name = name;
            this.type = type;
        }
    }

    public enum StoreType {
        PINGTAI("自营", 0), BUSINESS("企业", 1), SUPPLIER("供应商", 2);
        private String name;
        private int type;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        StoreType(String name, int type) {
            this.name = name;
            this.type = type;
        }
    }

}

